import * as TYPES from '../action-types'
import _ from '../../assets/utils'
//初始值
let initial = {
  info: null,
}
export default function baseReducer(state = initial, action) {
  state = _.clone(state)
  // console.log(state);
  switch (action.type) {
    // 更新登录者信息
    case TYPES.BASE_INFO:
      state.info = action.info
      break
    default:
      return state
  }
  return state
}
//base存我们登录信息
